from selenium import webdriver
from selenium.webdriver.common.by import By
from login import Login
from time import sleep
from options import options

url = r'http://192.168.142.201/upload/'
driver = webdriver.Chrome(options=options)
driver.get(url)
driver.maximize_window()

driver.find_element(By.XPATH, '//*[@id="lsform"]/div/div/table/tbody/tr[2]/td[4]/a').click()
driver.find_element(By.ID,'w5Ce6u').clear()
driver.find_element(By.ID,'w5Ce6u').send_keys('aaa')
driver.find_element(By.ID,'jzm6VD').clear()
driver.find_element(By.ID,'jzm6VD').send_keys('123456')
driver.find_element(By.ID,'CWZwK0').clear()
driver.find_element(By.ID,'CWZwK0').send_keys('123456')
driver.find_element(By.ID,'nsq2mP').clear()
driver.find_element(By.ID,'nsq2mP').send_keys('aaa@qq.com')
driver.find_element(By.XPATH, '//*[@id="registerformsubmit"]/strong').click()
sleep(3)

login = Login(driver)
login.logout()
driver.quit()